<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<?php echo $cabecalho; ?>
<?php echo $menu_esq; ?>
<div id="mainContent">
<h1>Login</h1>
<div class="error"><?php echo $error;?></div>
<?php 
	echo form::open('auth/auth');
	echo form::open_fieldset();
	echo form::legend('Login');
	echo form::label('username', 'Usuario');
	echo form::input('username', 'admin').'<br>';
	echo form::label('password', 'Senha');
	echo form::password('password', 'admin').'<br>';
	echo '<label>Logar automaticamente'.
			form::checkbox('autologin','1').
			'</label><br>';
	if($this->session->get("login_errors")>=5){
		echo '<p>'.$captcha.'<br>';
		echo form::label('Digite as letras:').'<br>';
		echo form::input('captcha_response').'</p>';
	}
	echo form::submit('submit', 'Entrar');
	echo form::close_fieldset();
	echo form::close();
?>
<!-- end #mainContent --></div>
<?php echo $rodape; ?>